import request from '@/utils/request';

/**
 * 查询咨询协作列表
 * @param query
 * @returns {*}
 */

export const listZxxz = (query) => {
  return request({
    url: '/system/zxxz/list',
    method: 'get',
    params: query
  });
};

/**
 * 查询咨询协作详细
 * @param id
 */
export const getZxxz = (id)=> {
  return request({
    url: `/system/zxxz/getDetail/${id}`,
    method: 'get'
  });
};

/**
 * 新增咨询协作
 * @param data
 */
export const addZxxz = (data) => {
  return request({
    url: '/system/zxxz',
    method: 'post',
    data: data
  });
};

/**
 * 修改咨询协作
 * @param data
 */
export const updateZxxz = (data) => {
  return request({
    url: '/system/zxxz',
    method: 'put',
    data: data
  });
};

/**
 * 删除咨询协作
 * @param id
 */
export const delZxxz = (id) => {
  return request({
    url: '/system/zxxz/' + id,
    method: 'delete'
  });
};
